<template>
    <div>
        <el-button class="btn-class" type="primary" @click="refresh()">刷新Redis</el-button>
    </div>
</template>
<script>
import * as api from "@/http/admin-api.js";
export default {
    methods: {
        refresh() {
            api.refreshRedis().then(res => {
                if (res) {
                    this.$message({
                        message: res.error_msg,
                        type: "success"
                    });
                }
            });
        }
    }
};
</script>
<style lang="scss" scoped>
</style>